import react from 'react'

interface IHelloProps {
    message?: string
}

// const Hello = (props: IHelloProps) => {
//     return <h2>{props.message}</h2>
// }

const Hello: React.FC<IHelloProps> = (props) => {
    return <h2>{props.message}</h2>
}

Hello.defaultProps = {
    message: "defaultContents"
}

export default Hello